import * as ct from './constants'
import { fromJS } from 'immutable'
const defaultState = fromJS({
    focused: false
})

export default (state = defaultState, action) => {
    switch (action.type) {
        case ct.HISTORY_SHOW:
            return state.set("focused", true)
        case ct.HISTORY_HIDDEN:
            return state.set("focused", false)
        default:
            return state
    }

}